package mysql

import "gorm.io/gorm"

type Tool struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(50)not null"`
	Price   float64 `gorm:"type:decimal(10,2)not null"`
	Stock   int64   `gorm:"type:int(11)not null"`
	Image   string  `gorm:"type:varchar(50)not null"`
	Info    string  `gorm:"type:varchar(50) not null"`
	ClassId int64   `gorm:"type:int(11)not null"`
	BrandId int64   `gorm:"type:int(11)not null"`
}
type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(50);not null"`
}

type Brand struct {
	gorm.Model
	Name string `gorm:"type:varchar(50);not null"`
}

type ToolData struct {
	Tool
	ClassName string
	BrandName string
}
